import { MyRequest } from '..'

import type { roleRoot, departmentRoot, menuRoot } from '@/types/main'

export function getEntireRoles() {
  return MyRequest.post<roleRoot>({
    url: 'role/list'
  })
}

export function getEntireDeparments() {
  return MyRequest.post<departmentRoot>({
    url: 'department/list'
  })
}
export function getEntireMenu() {
  return MyRequest.post<menuRoot>({
    url: 'menu/list'
  })
}
